#ifndef KSPRITE_H
#define KSPRITE_H

#include <QImage>
#include <QGLWidget>
#include <QOpenGLFunctions_4_3_Core>


class KSprite
{
public:
    KSprite(const char* image);
    ~KSprite();

private:
    const char* imagePath;
    QImage texture;

public:
    GLuint texId;
    GLfloat width, height;
    GLfloat posX = 0, posY = 0;

    void setPosition(GLfloat x, GLfloat y);
};

#endif // KSPRITE_H
